#include <QDebug>
#include "Setting.h"

/* item索引映射table */
const QMap<int, const char *> m_settingItem{
    {ImageSaturability_Index, QT_TRANSLATE_NOOP("QObject", "饱和度")},
    {ImageColorR_Index, QT_TRANSLATE_NOOP("QObject", "色偏R")},
    {ImageColorB_Index, QT_TRANSLATE_NOOP("QObject", "色偏B")},
    {ImageSharpness_Index, QT_TRANSLATE_NOOP("QObject", "锐度")},
    {ImageCalibration_Index, QT_TRANSLATE_NOOP("QObject", "粗调")},
    {ImageGamma_Index, QT_TRANSLATE_NOOP("QObject", "Gamma")},
    {ImageDenoise_Index, QT_TRANSLATE_NOOP("QObject", "降噪")},
    {ImageContrast_Index, QT_TRANSLATE_NOOP("QObject", "对比度")},
    {ImageBrightness_Index, QT_TRANSLATE_NOOP("QObject", "图像亮度")},
    {Ledbrightness_Index, QT_TRANSLATE_NOOP("QObject", "LED亮度")},
    {StripeCorrect_Index, QT_TRANSLATE_NOOP("QObject", "细调")},
    {ImageDLC, QT_TRANSLATE_NOOP("QObject", "黑电平校正")},
    {ImageDPC, QT_TRANSLATE_NOOP("QObject", "坏点校正")},
    {ImageLens, QT_TRANSLATE_NOOP("QObject", "镜头校正")},
};

const QMap<int, QString> m_saturabilityMap{
    {0, QT_TRANSLATE_NOOP("QObject", "1")},
    {1, QT_TRANSLATE_NOOP("QObject", "2")},
    {2, QT_TRANSLATE_NOOP("QObject", "3")},
    {3, QT_TRANSLATE_NOOP("QObject", "4")},
    {4, QT_TRANSLATE_NOOP("QObject", "5")},
    {5, QT_TRANSLATE_NOOP("QObject", "6")},
    {6, QT_TRANSLATE_NOOP("QObject", "7")},
    {7, QT_TRANSLATE_NOOP("QObject", "8")},
    {8, QT_TRANSLATE_NOOP("QObject", "9")},
    {9, QT_TRANSLATE_NOOP("QObject", "10")},
};

const QMap<int, QString> m_colorRMap{
    {0, QT_TRANSLATE_NOOP("QObject", "1")},
    {1, QT_TRANSLATE_NOOP("QObject", "2")},
    {2, QT_TRANSLATE_NOOP("QObject", "3")},
    {3, QT_TRANSLATE_NOOP("QObject", "4")},
    {4, QT_TRANSLATE_NOOP("QObject", "5")},
    {5, QT_TRANSLATE_NOOP("QObject", "6")},
    {6, QT_TRANSLATE_NOOP("QObject", "7")},
    {7, QT_TRANSLATE_NOOP("QObject", "8")},
    {8, QT_TRANSLATE_NOOP("QObject", "9")},
    {9, QT_TRANSLATE_NOOP("QObject", "10")},
};

const QMap<int, QString> m_colorBMap{
    {0, QT_TRANSLATE_NOOP("QObject", "1")},
    {1, QT_TRANSLATE_NOOP("QObject", "2")},
    {2, QT_TRANSLATE_NOOP("QObject", "3")},
    {3, QT_TRANSLATE_NOOP("QObject", "4")},
    {4, QT_TRANSLATE_NOOP("QObject", "5")},
    {5, QT_TRANSLATE_NOOP("QObject", "6")},
    {6, QT_TRANSLATE_NOOP("QObject", "7")},
    {7, QT_TRANSLATE_NOOP("QObject", "8")},
    {8, QT_TRANSLATE_NOOP("QObject", "9")},
    {9, QT_TRANSLATE_NOOP("QObject", "10")},
};

const QMap<int, QString> m_sharpnessMap{
    {0, QT_TRANSLATE_NOOP("QObject", "1")},
    {1, QT_TRANSLATE_NOOP("QObject", "2")},
    {2, QT_TRANSLATE_NOOP("QObject", "3")},
    {3, QT_TRANSLATE_NOOP("QObject", "4")},
    {4, QT_TRANSLATE_NOOP("QObject", "5")},
    {5, QT_TRANSLATE_NOOP("QObject", "6")},
    {6, QT_TRANSLATE_NOOP("QObject", "7")},
    {7, QT_TRANSLATE_NOOP("QObject", "8")},
    {8, QT_TRANSLATE_NOOP("QObject", "9")},
    {9, QT_TRANSLATE_NOOP("QObject", "10")},
};

const QMap<int, QString> m_calibrationMap{
    {0, QT_TRANSLATE_NOOP("QObject", "0")},
    {1, QT_TRANSLATE_NOOP("QObject", "1")},
    {2, QT_TRANSLATE_NOOP("QObject", "2")},
    {3, QT_TRANSLATE_NOOP("QObject", "3")}
};

const QMap<int, QString> m_denoiseMap{
    {0, QT_TRANSLATE_NOOP("QObject", "1")},
    {1, QT_TRANSLATE_NOOP("QObject", "2")},
    {2, QT_TRANSLATE_NOOP("QObject", "3")},
    {3, QT_TRANSLATE_NOOP("QObject", "4")},
    {4, QT_TRANSLATE_NOOP("QObject", "5")},
    {5, QT_TRANSLATE_NOOP("QObject", "6")},
    {6, QT_TRANSLATE_NOOP("QObject", "7")},
    {7, QT_TRANSLATE_NOOP("QObject", "8")},
    {8, QT_TRANSLATE_NOOP("QObject", "9")},
    {9, QT_TRANSLATE_NOOP("QObject", "10")},
};

const QMap<int, QString> m_contrastMap{
    {0, QT_TRANSLATE_NOOP("QObject", "1")},
    {1, QT_TRANSLATE_NOOP("QObject", "2")},
    {2, QT_TRANSLATE_NOOP("QObject", "3")},
    {3, QT_TRANSLATE_NOOP("QObject", "4")},
    {4, QT_TRANSLATE_NOOP("QObject", "5")},
    {5, QT_TRANSLATE_NOOP("QObject", "6")},
    {6, QT_TRANSLATE_NOOP("QObject", "7")},
    {7, QT_TRANSLATE_NOOP("QObject", "8")},
    {8, QT_TRANSLATE_NOOP("QObject", "9")},
    {9, QT_TRANSLATE_NOOP("QObject", "10")},
};

const QMap<int, QString> m_brightnessMap{
    {0, QT_TRANSLATE_NOOP("QObject", "1")},
    {1, QT_TRANSLATE_NOOP("QObject", "2")},
    {2, QT_TRANSLATE_NOOP("QObject", "3")},
    {3, QT_TRANSLATE_NOOP("QObject", "4")},
    {4, QT_TRANSLATE_NOOP("QObject", "5")},
    {5, QT_TRANSLATE_NOOP("QObject", "6")},
    {6, QT_TRANSLATE_NOOP("QObject", "7")},
    {7, QT_TRANSLATE_NOOP("QObject", "8")},
    {8, QT_TRANSLATE_NOOP("QObject", "9")},
    {9, QT_TRANSLATE_NOOP("QObject", "10")},
};

const QMap<int, QString> m_ledbrightnessMap{
    {0, QT_TRANSLATE_NOOP("QObject", "1")},
    {1, QT_TRANSLATE_NOOP("QObject", "2")},
    {2, QT_TRANSLATE_NOOP("QObject", "3")},
    {3, QT_TRANSLATE_NOOP("QObject", "4")},
    {4, QT_TRANSLATE_NOOP("QObject", "5")},
    {5, QT_TRANSLATE_NOOP("QObject", "6")},
    {6, QT_TRANSLATE_NOOP("QObject", "7")},
    {7, QT_TRANSLATE_NOOP("QObject", "8")},
    {8, QT_TRANSLATE_NOOP("QObject", "9")},
    {9, QT_TRANSLATE_NOOP("QObject", "10")},
};

const QMap<int, QString> m_gammaMap{
    {0, QT_TRANSLATE_NOOP("QObject", "1.0")},
    {1, QT_TRANSLATE_NOOP("QObject", "1.6")},
    {2, QT_TRANSLATE_NOOP("QObject", "1.7")},
    {3, QT_TRANSLATE_NOOP("QObject", "1.8")},
    {4, QT_TRANSLATE_NOOP("QObject", "1.9")},
    {5, QT_TRANSLATE_NOOP("QObject", "2.0")},
    {6, QT_TRANSLATE_NOOP("QObject", "2.1")},
    {7, QT_TRANSLATE_NOOP("QObject", "2.2")},
    {8, QT_TRANSLATE_NOOP("QObject", "2.3")},
    {9, QT_TRANSLATE_NOOP("QObject", "2.4")},
    {10, QT_TRANSLATE_NOOP("QObject", "2.5")},
    {11, QT_TRANSLATE_NOOP("QObject", "2.6")}
};

const QMap<int, QString> m_DLCMap{
    {0, QT_TRANSLATE_NOOP("QObject", "0")},
    {1, QT_TRANSLATE_NOOP("QObject", "1")},
    {2, QT_TRANSLATE_NOOP("QObject", "2")},
    {3, QT_TRANSLATE_NOOP("QObject", "3")}
};


const QMap<int, QString> m_DPCMap{
    {0, QT_TRANSLATE_NOOP("QObject", "0")},
    {1, QT_TRANSLATE_NOOP("QObject", "1")},
    {2, QT_TRANSLATE_NOOP("QObject", "2")},
    {3, QT_TRANSLATE_NOOP("QObject", "3")}
};


const QMap<int, QString> m_LensMap{
    {0, QT_TRANSLATE_NOOP("QObject", "0")},
    {1, QT_TRANSLATE_NOOP("QObject", "1")},
    {2, QT_TRANSLATE_NOOP("QObject", "2")},
    {3, QT_TRANSLATE_NOOP("QObject", "3")}
};



